﻿using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using Newtonsoft.Json;
using RMM.Core.Entity.Massagistes;
using RMM.Core.Entity.Users;
using RMM.Evaluates.Dtos;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RMM.Massagists.Dtos
{
    [AutoMap(typeof(Massagist))]
    public class MassagistDto : EntityDto<long>
    {
        public MassagistDto()
        {
            Evaluate = new EvaluateDto();
            EvaluateCates = new List<string>();
        }

        public long MassagistId { get => base.Id; }

        /// <summary>
        /// 用户头像
        /// </summary>
        public string UserHead { get; set; }

        public string Address { get; set; }

        public string UserName { get; set; }

        public string Mobile { get; set; }

        public decimal Price { get; set; }

        /// <summary>
        /// 服务时常 分钟
        /// </summary>
        public int ProjectTime { get; set; }

        /// <summary>
        /// 附加服务
        /// </summary>
        public string Addition { get; set; }


        public long ShopId { get; set; }

        /// <summary>
        /// 擅长项目
        /// </summary>
        public string GoodAt { get; set; }

        /// <summary>
        /// 本月订单数
        /// </summary>
        public int OrderNum { get; set; }

        /// <summary>
        /// 总评价数
        /// </summary>
        public int EvaluateCount { get; set; }
        
        /// <summary>
        /// 当前预约数量
        /// </summary>
        public int MakeNum { get; set; }

        /// <summary>
        /// 共享技师 0：否 1：是
        /// </summary>
        public int IsShare { get; set; }

        /// <summary>
        /// 星
        /// </summary>
        public int Star { get; set; }

        /// <summary>
        /// 平局分
        /// </summary>
        public double MOS { get; set; }

        /// <summary>
        /// 评价个数
        /// </summary>
        public int EvaluateNum { get; set; }

        /// <summary>
        /// 距离 米
        /// </summary>
        public int Rice { get; set; }

        /// <summary>
        /// 评价
        /// </summary>
        public EvaluateDto Evaluate { get; set; }


        /// <summary>
        /// 评价标签
        /// </summary>
        public List<string> EvaluateCates { get; set; }

        /// <summary>
        /// 技师项目
        /// </summary>
        public List<MassagistProjectDto> MassagistProject { get; set; }





        /// <summary>
        /// 纬度
        /// </summary>
        [JsonIgnore]
        public double Latitude { get; set; }

        /// <summary>
        /// 精度
        /// </summary>
        [JsonIgnore]
        public double Longitude { get; set; }
    }
}
